package com.rdc.qingkou.model;

import android.content.Context;
import android.content.SharedPreferences;

import static android.content.Context.MODE_PRIVATE;

/**
 * Created by asus on 2017/9/14.
 */

public class LaunchModel {



    public boolean isWelcomed(Context mView){

         return mView.getSharedPreferences("welcome_data", MODE_PRIVATE).getBoolean("isWelcomed", false);

    }

    public void setWelcomed(Context mView){
        SharedPreferences.Editor editor = mView.getSharedPreferences("welcome_data", MODE_PRIVATE).edit();
        editor.putBoolean("isWelcomed", true);
        editor.apply();
    }



}
